package com.ycb.seata;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface OrderMapper {
 
	@Update("update `order` set amt =  amt + ${amt} where id = ${id} ")
	int addAmt(@Param("id") int id, @Param("amt") int amt);
 
	@Update("update `order` set amt = amt - ${amt} where id = ${id} ")
	int subAmt(@Param("id") int id, @Param("amt") int amt);
 
}